package com.shhic.itsed.mws.deviceintf;

import lombok.ToString;

import java.util.HashSet;
import java.util.Set;

/**
 * 天线-协议组
 * 
 * 用于在阅读器命令中标识需要进行操作的天线-协议组
 * @author 张文硕
 *
 */
@ToString
public class AntennaProtocol {

	private int antennaNo;	//天线号
	private Set<String> protocols;	//涉及协议组，预定义两种：EPC/6B
	
	public static final String P_EPC = "EPC";
	public static final String P_6B = "6B";
	
	public AntennaProtocol() {
	}
	
	public AntennaProtocol(int antennaNo,String protocol) {
		this.antennaNo = antennaNo;
		this.protocols = new HashSet<String>();
		this.protocols.add(protocol);
	}
	
	public AntennaProtocol(int antennaNo,Set<String> protocols) {
		this.antennaNo = antennaNo;
		this.protocols = protocols;
	}
	

	public int getAntennaNo() {
		return antennaNo;
	}
	public void setAntennaNo(int antennaNo) {
		this.antennaNo = antennaNo;
	}
	public Set<String> getProtocols() {
		return protocols;
	}
	public void setProtocols(Set<String> protocols) {
		this.protocols = protocols;
	}
	
}
